#pragma once


// CBoradcastListBox

class SYSINTERFACEPRODLLEXPORT CBoradcastListBox : public CListBox
{
	DECLARE_DYNAMIC(CBoradcastListBox)

public:
	CBoradcastListBox();
	virtual ~CBoradcastListBox();

protected:
	DECLARE_MESSAGE_MAP()
private:
	HANDLE hSelect;
	SOCKET Listen;
public:
	bool InitCommunication(void);
	//SOCKET GetListenSocket(void);
	bool InitThread(void);
	void ExitAllThread(void);
	HANDLE GetSelect(void);
	SOCKET GetSocket(void);

private:
	// BroadcastPort
	int m_BroadcastPort;
public:
	// SetBroadCastPort
	void SetBroadCastPort(const int port);
	// AddListViewData
	void AddListViewData(const std::string & data);

};


